package com.zzg.lucene.condition;

import org.apache.lucene.queryparser.classic.ParseException;
import org.junit.Before;
import org.junit.Test;

public class CommandSearch {
	private SearcherUtil util;
    
    @Before
    public void init(){
        util = new SearcherUtil();
    }
    
    @Test
    public void searchByTerm() throws ParseException{
        util.searchByTerm("name", "Jack", 3);
        //util.searchByTerm("content", "like", 3);//注意：查询到的总记录数和我们想要显示的记录数没有关系
    }

}
